package com.leetcode.offer.chapter3;

/**
 * @author Dennis Li
 * @date 2020/7/12 21:04
 */
public class PrintNums_17 {
    public void printNumbers(int n) {
        String temp;
        char[] nums = new char[n];
        for (int i = 0; i < n; i++) {
            for (int j = 0; j < 10; j++) {
                nums[0] = (char) ('0' + j);
                temp = new String(nums);
                System.out.print(temp + " ");
            }
        }
    }
}
